<template>
  <svg aria-hidden="true" @click="$emit('click', $event)">
    <use :xlink:href="this.icon"></use>
  </svg>
</template>

<script>
  export default {
    name: "Icon",
    props: {
      icon: {
        type: String,
        required: true
      },
    },
    computed: {},
    watch: {}
  }
</script>

<style scoped>
  .icon {
    display: inline-block;
    width: 25px;
    height: 25px;
  }
</style>
